package com.hyk.enums;


import lombok.Getter;

@Getter
public enum ApiEnum {

    SUCCESS(200,"成功"),FAIL(500,"失败"),
    FAIL_NAME_OR_PASSWORD_ERROR(1000,"账号或密码错误"),
    USERNAME_ALREADY_EXIST(10000,"用户名重复"),
    USERNAME_OR_PASSWORD_IS_NULL(10001,"账号或密码为空"),
    USERNAME_OR_PASSWORD_IS_ERROR(10002,"账号或密码错误"),
    ABNORMAL_ACCOUNT(10003,"账号数量大于一个"),
    USER_NOT_LOGIN(10004,"用户未登录"),
    TOKEN_IS_ILLEGAL(10006,"没有token无法访问"),
    VERIFICATION_CODE_ERROR(10011,"验证码错误"),
    LOGOUT_OK(10007,"登出成功！"),
    USER_NOT_ROLE(10008,"用户没有绑定"),
    USER_NOT_PRESS(10009,"没有访问权限"),
    UUID_IS_NULL(10010,"验证码为空"),
    ADDRESS_TOO_MANY(10012,"地址太多")
    ;


    private int code;

    private String message;

    ApiEnum(int code, String message){
        this.code = code;
        this.message = message;
    }

}
